package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("userService")
public class UserServiceImpl implements UserService {
    @Autowired//自动将UserDao实例化到userDao中
    UserDao userDao;
    @Override
    public boolean login(String name, String password) {
        return userDao.login(name, password);
    }
}
